<?php	
#################################################
#author:jackzheng
#Last upate:2017/10/07
#################################################
header("Content-type: text/html; charset=utf-8");
include $_SERVER['DOCUMENT_ROOT']."/Mapi/public/config/common_func.php";


$card_id = isset($_REQUEST['card_id'])?intval($_REQUEST['card_id']):0;

$apiurl = "/Mapi/?url=/personal/card_info";
$parameter = array("card_id" =>$card_id);
$res_data = call_api($apiurl,$parameter);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name=viewport
          content="width=device-width,height=device-height,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,target-densitydpi=device-dpi">
    <script src="js/resize.js"></script>
    <link rel="stylesheet" href="css/style.css">
    <title>GPS应急月卡</title>
</head>
<body style="background-color: #ffffff">
<section class="main">
    <div class="content-main">
        <div class="head">
            <div class="head-img">
                <img src="<?php echo $res_data['data']['card_cover'];?>">
            </div>
            <div class="head-conter">
                <div class="left">
                    <span><?php echo $res_data['data']['shop_price'];?></span>
                </div>
                <div class="right">
                    <span><?php echo $res_data['data']['card_name'];?></span>
                    <i><?php echo $res_data['data']['title_name'];?></i>
                </div>
            </div>
        </div>
        <div class="content">
           <?php echo $res_data['data']['content'];?>
        </div>
        <div class="foot">
            <a href="javascript:">立即购买</a>
        </div>
    </div>
</section>


<script src="js/jquery-1.9.1.min.js"></script>
<script>
</script>
</body>
</html>
